<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			function fn1(){
				var arr = new Array[100000]
				function fn2(){
					console.log(arr.length)
				}
				return fn2
			}
			
			var f = fn1()
			f()
			
			f = null  // 让内部函数变成垃圾对象 ==> 回收闭包
		</script>
	</head>
	<body>
	</body>
</html>
